package com.wei.czz.framework.store.service;

import com.wei.czz.common.vo.store.audit.AuditSaveVo;
import com.wei.czz.framework.store.entity.AuditStoreEntity;

import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2023-12-01 11:38:26
 * className: AuditStoreService
 * version: 1.0
 * description:
 */
public interface AuditStoreService {

    /**
     * 保存商店审核记录操作
     * @param auditSaveVo 参数对象
     * @return 添加数据条数
     */
    Integer saveAuditStore(AuditSaveVo auditSaveVo);

    /**
     * 获取用户关联的商店审核记录操作
     * @param userIdCollection 用户主键集合
     * @param createTime       创建时间
     * @return 商店审核记录列表
     */
    List<AuditStoreEntity> getAuditStoreList(Collection<Long> userIdCollection, Date createTime);

    /**
     * 获取商店审核记录操作
     * @param businessId 业务主键
     * @param accountId  账户主键
     * @param bossId     老板主键
     * @return 商店审核记录列表
     */
    List<AuditStoreEntity> getAuditStoreList(Long businessId, Long accountId, Long bossId);

    /**
     * 获取商店最新一条审核拒绝记录操作
     * @param storeId 商店主键
     * @return 商店审核对象
     */
    AuditStoreEntity getAuditReject(Long storeId);
}

